#include <stdio.h>

#define n 1000000007

int main() {
 
	for (long long i =  10000000; i <= n ; i++) {
		long long a = (i * 2021) % n;
		if ((i * 2021) % n == 999999999) {
			printf("%lld", i);
			break;
		}
	}
	
//	printf("%lld" , ((long long)17812964 * (long long)2021) % (long long)n);
	
	
	/*
	
	1->10
	
	i*2 % 5 == 4
	
	
	*/

	return 0;
}
